﻿using System.Windows.Data;

namespace WasaWasa.Converters
{
    public class LogicalAndMultiConverter : IMultiValueConverter
    {
        #region IMultiValueConverter メンバ

        public object Convert(object[] values, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            bool b = true;
            foreach(var cb in values) {
                b &= (bool)cb;
            }
            return b;
        }

        public object[] ConvertBack(object value, System.Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new System.NotImplementedException();
        }

        #endregion
    }
}
